package com.canton.service.impl;
import com.canton.dao.entity.MethodNode;
import com.canton.dao.repository.MethodRepository;
import com.canton.service.MethodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MethodServiceImpl implements MethodService {
    @Autowired
    private MethodRepository methodRepository;


    @Override
    public MethodNode findByName(String name) {
        return methodRepository.findByName(name);
    }

    @Override
    public List<MethodNode> findAll() {
        return methodRepository.findAll();
    }

    @Override
    public List<MethodNode> findByNameLike(String likes) {
        return methodRepository.findByNameLike(likes);
    }
}
